<div class="row">
	<div class="large-12 columns">
<table class="table table-bordered table-striped">
		<tr>
			<td>Group Name</td>
			<td>Description</td>
			<td>Grade Levels</td>
			<td></td>
		</tr>
		<?if($payment_groups):?>
			<?foreach($payment_groups as $pg):?>
			<tr>
				<td><?=$pg['group_name'];?></td>
				<td><?=$pg['group_desc'];?></td>
				<td>
					<?if(!empty($pg['grade_levels'])):?>
						<ul style="list-style-type:none;">
						<?foreach($pg['grade_levels'] as $v):?>
							<li><?=$v->level_code.' | '.$v->level_desc;?></li>
						<?endforeach;?>
						</ul>
					<?else:?>
						<span class="label">No Grade Levels Set</span>
					<?endif;?>

				</td>
				<td><a href="<?=site_url('fees/view_payment_group/'.__link($pg['id']));?>" class="btn btn-mini">View</a></td>
			</tr>
			<?endforeach;?>
		<?else:?>
			<tr class="error">
				<td colspan="2">No Payment Groups Available</td>
			</tr>
		<?endif;?>
</table>
	</div>
</div>